package com.zb.zeus.common.datasource.injector;

import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;
import com.zb.zeus.common.datasource.injector.method.InsertSelective;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @author fujianjian
 * @date 2022/5/7 16:41
 **/
@Configuration
public class ZeusSqlInjector extends DefaultSqlInjector {

    @Override
    public List<AbstractMethod> getMethodList(Class<?> mapperClass) {
        List<AbstractMethod> methodList = super.getMethodList(mapperClass);
        methodList.add(new InsertSelective());
        return methodList;
    }
}
